package com.care.doctor.server.controller;

import com.care.common.core.domain.Result;
import com.care.doctor.common.domain.DTODoctor;
import com.care.doctor.common.domain.DTOHospital;
import com.care.doctor.common.req.GetDoctorReq;
import com.care.doctor.common.req.ListReq;
import com.care.doctor.server.service.DoctorService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 靳家振
 * @Date: 2024/3/22 18:51
 * @Description:
 **/

@RestController
@RequestMapping("/doctor")
public class DoctorController {
    @Autowired
    private DoctorService doctorService;

    @PostMapping("/findDoctor")
    public Result<PageInfo<DTODoctor>> findDoctor(@RequestBody GetDoctorReq req) {
        return doctorService.findDoctor(req);
    }

}
